<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
        .box1{
            height: 400px;
            width: 400px;
            background-color: skyblue;
            margin: 0 auto;
            font-size: 40px;
            text-align: center;
            background-image: url("../../../images/bg02.jpg");
            padding: 50px;
            border: 50px dashed rgba(255,0,0,0.7);
            /*background-clip: content-box;*/
            /*background-clip: padding-box;*/
            background-repeat: no-repeat;
            background-clip: border-box;
        }
    </style>
</head>
<body>
<div class="box1">
    你好啊
</div>
</body>
</html>